'use strict';

module.exports = (app) => {
    const {DataTypes} = app.Sequelize;
    const Business = app.model.define('business', {
        id: { 
            type: DataTypes.UUID,
            defaultValue: app.Sequelize.UUIDV4, 
            primaryKey: true,
            notNull: true,
            comment: 'ID'
        },
        bannerTitle:{type: DataTypes.STRING(50),notNull:true,comment: 'banner'},
        bannerDetail:{type: DataTypes.STRING(500),notNull:true,comment: 'bannerDeteil'},
        subTitle1:{type: DataTypes.STRING(200),notNull:true,comment: 'bannnerImage'},
        subDetail1:{type: DataTypes.STRING(200),notNull:true,comment: 'bannnerImage'},
        subImg1:{type: DataTypes.STRING(100),notNull:true,comment: 'bannnerImage'},
        
        subTitle2:{type: DataTypes.STRING(200),notNull:true,comment: 'bannnerImage'},
        subDetail2:{type: DataTypes.STRING(200),notNull:true,comment: 'bannnerImage'},
        subImg2:{type: DataTypes.STRING(100),notNull:true,comment: 'bannnerImage'},

        subTitle3:{type: DataTypes.STRING(200),notNull:true,comment: 'bannnerImage'},
        subDetail3:{type: DataTypes.STRING(200),notNull:true,comment: 'bannnerImage'},
        subImg3:{type: DataTypes.STRING(100),notNull:true,comment: 'bannnerImage'},

        subTitle4:{type: DataTypes.STRING(200),notNull:true,comment: 'bannnerImage'},
        subDetail4:{type: DataTypes.STRING(200),notNull:true,comment: 'bannnerImage'},
        subImg4:{type: DataTypes.STRING(100),notNull:true,comment: 'bannnerImage'},

        subTitle5:{type: DataTypes.STRING(200),notNull:true,comment: 'bannnerImage'},
        subDetail5:{type: DataTypes.STRING(200),notNull:true,comment: 'bannnerImage'},
        subImg5:{type: DataTypes.STRING(100),notNull:true,comment: 'bannnerImage'},
    },
  );
//   Business.sync()
  return Business;
};